package com.google.monkeyjump.ranking;

public enum Classification {
	KING_KONG, GORILLA, CHIMPANZEE, ORANGUTAN, BABOON, MARMOSET, NEWBIE;

	public static Classification getClassification(int classificationIndex) {
		int index = classificationIndex;
		int maxclassificationIndex = Classification.values().length - 1;
		if (classificationIndex > maxclassificationIndex) {
			index = maxclassificationIndex;
		}
		
		return Classification.values()[maxclassificationIndex - index];
	}
}
